Daniel Boles [Sat, 18 Feb 2017 20:18:05 +0000 (20:18 +0000)]
testsuite/gtk/textiter: Add missing assertion
gboolean ret for whether gtk_text_iter_backward_line() moved the iter
was declared but not used anywhere. I presume it was meant to be
checked, and it passes now, so let’s do it.
Daniel Boles [Sat, 18 Feb 2017 20:20:21 +0000 (20:20 +0000)]
Revert "testsuite/gtk/textiter: Remove an unused variable"
This reverts commit
8bddf52b510457f73e2ab70049e63d2f6125f456.
Daniel Boles [Sat, 18 Feb 2017 19:26:08 +0000 (19:26 +0000)]
testsuite/gtk/textiter: Remove an unused variable
Timm Bäder [Sat, 18 Feb 2017 18:11:22 +0000 (19:11 +0100)]
scrolledwindow: Remove unused define
Timm Bäder [Sat, 18 Feb 2017 14:16:57 +0000 (15:16 +0100)]
image: Remove useless queue_resize call
This will be done form GtkIconHelper already when we call
gtk_image_reset
Timm Bäder [Sat, 18 Feb 2017 17:59:32 +0000 (18:59 +0100)]
expander: Remove unused defines
Timm Bäder [Sat, 18 Feb 2017 10:12:24 +0000 (11:12 +0100)]
notebook: Use gtk_widget_measure
Timm Bäder [Sat, 18 Feb 2017 10:10:16 +0000 (11:10 +0100)]
expander: Use gtk_widget_measure
Timm Bäder [Sat, 18 Feb 2017 09:43:14 +0000 (10:43 +0100)]
scrolledwindow: Avoid usage of uninitialized local
the scrollbar passed in better be either priv->hscrollbar or
priv->vscrollbar. Ensure that by using a simple else instead of an
else-if and a g_assert.
Jiri Grönroos [Sat, 18 Feb 2017 17:36:52 +0000 (17:36 +0000)]
Update Finnish translation
Aurimas Černius [Sat, 18 Feb 2017 14:49:29 +0000 (16:49 +0200)]
Updated Lithuanian translation
Claude Paroz [Sat, 18 Feb 2017 13:22:38 +0000 (14:22 +0100)]
Updated French translation
Peter Mráz [Sat, 18 Feb 2017 08:14:22 +0000 (08:14 +0000)]
Update Slovak translation
Lionel Landwerlin [Mon, 9 Jan 2017 00:11:29 +0000 (00:11 +0000)]
widget: propagate scale factor upon reparenting a widget
When a widget is created, its default scale is the scale of the
primary screen (for instance 2). But once parented to another widget
its scale factor should be the one of its parent (if parented to a
widget on a screen at scale factor 1, it should be 1).
The problem is that we don't emit the notify::scale-factor signal when
reparenting happens.
https://bugzilla.gnome.org/show_bug.cgi?id=776821
Daniel Boles [Fri, 17 Feb 2017 22:01:32 +0000 (22:01 +0000)]
Image—Add some more missing (nullable) annotations
Carlos Garnacho [Tue, 7 Feb 2017 15:35:55 +0000 (16:35 +0100)]
gdk: Ensure GdkDragContext instantly updates drag window position
Otherwise we wait for the next gdk_drag_motion() call, which will
happen on the next motion event, making the drag window briefly visible
on the 0,0 root coordinates.
https://bugzilla.gnome.org/show_bug.cgi?id=778203
Timm Bäder [Fri, 17 Feb 2017 17:20:12 +0000 (18:20 +0100)]
flowboxchild: Use gtk_widget_measure to measure widget sizes
GtkFlowBoxChild is a simple GtkBin, so measure the child widget size in
a simple way.
Timm Bäder [Fri, 17 Feb 2017 16:46:47 +0000 (17:46 +0100)]
paned: Use gtk_widget_measure to measure widget sizes
Timm Bäder [Fri, 17 Feb 2017 16:41:48 +0000 (17:41 +0100)]
combobox: Use gtk_widget_measure to measure widgets
Timm Bäder [Fri, 17 Feb 2017 14:08:02 +0000 (15:08 +0100)]
cssimage: Plug a small memory leak
Timm Bäder [Thu, 16 Feb 2017 11:23:47 +0000 (12:23 +0100)]
filechooserentry: Avoid an uninitialized value
|= with a garbage value on the left side results in a still-garbage
value.
Timm Bäder [Thu, 16 Feb 2017 11:22:58 +0000 (12:22 +0100)]
filechooserwidget: Fix profiling code compilation
Timm Bäder [Thu, 16 Feb 2017 11:22:33 +0000 (12:22 +0100)]
Add a few missing (nullable) annotations
Timm Bäder [Thu, 16 Feb 2017 11:21:23 +0000 (12:21 +0100)]
builder: avoid an uninitialized value
When g_module_supported() returns FALSE, args.module is garbage
otherwise.
Timm Bäder [Thu, 16 Feb 2017 09:32:31 +0000 (10:32 +0100)]
filechooserwidget: Fix rename popover position calculation
Since the browse_file_popover is positioned correctly, just convert the
coordinates in the same way we do there.
https://bugzilla.gnome.org/show_bug.cgi?id=778746
Daniel Boles [Fri, 17 Feb 2017 15:18:24 +0000 (15:18 +0000)]
docs/css-properties: Fix info on 3value properties
https://developer.mozilla.org/en/docs/Web/CSS/margin#Values
Nelson Benítez León [Fri, 10 Feb 2017 18:29:41 +0000 (23:29 +0500)]
textiter: fix bug in gtk_text_iter_backward_line()
gtk_text_iter_backward_line() checks the value of
real->line_char_offset without previously calling
ensure_char_offsets (real) to make sure the former
is up-to-date.
As a consequence of this, when gtk_text_iter_backward_line()
is called after a gtk_text_buffer_insert_range() in the
first line of buffer, the iter is not moved to the start of
the line, and the return value is wrong.
Fixed by adding the ensure_char_offsets() call.
A test case for this bug is added to the textiter gtk testsuite.
Daniel Boles [Thu, 16 Feb 2017 21:33:25 +0000 (21:33 +0000)]
combobox—Always popup menu using current event
priv->trigger_event is never set, so it is always NULL. This means the
gtk_menu_popup*() methods use the current event. The only way to get any
other event to combobox_menu_popup() was from the button-press-event
handler I just removed, which would end up being the current one anyway.
So, bin priv->trigger_event & explicitly pass NULL to gtk_menu_popup*().
Daniel Boles [Thu, 16 Feb 2017 20:36:36 +0000 (20:36 +0000)]
combobox—Remove useless button-press-event handler
We use toggled, which does everything we need; this adds nothing useful.
Credit to Timm for noticing this—I didn’t when moving it to the ui file.
Emmanuele Bassi [Thu, 16 Feb 2017 00:24:57 +0000 (00:24 +0000)]
Use gtk_show_uri_on_window() in GtkLabel
Avoid the deprecated gtk_show_uri(), and allow activating link in
sandboxed applications.
https://bugzilla.gnome.org/show_bug.cgi?id=778726
Bastien Nocera [Thu, 16 Feb 2017 03:53:55 +0000 (04:53 +0100)]
GtkMountOperation: We use gtk_show_uri_on_window() by default
Not gtk_show_uri().
https://bugzilla.gnome.org/show_bug.cgi?id=778726
Bastien Nocera [Thu, 16 Feb 2017 03:53:29 +0000 (04:53 +0100)]
gtk: Ignore gtk_show_uri() deprecation warnings
https://bugzilla.gnome.org/show_bug.cgi?id=778726
Bastien Nocera [Thu, 16 Feb 2017 03:52:53 +0000 (04:52 +0100)]
GtkLinkButton: We use gtk_show_uri_on_window() by default
Not gtk_show_uri().
https://bugzilla.gnome.org/show_bug.cgi?id=778726
Bastien Nocera [Thu, 16 Feb 2017 03:52:02 +0000 (04:52 +0100)]
GtkAboutDialog: We use gtk_show_uri_on_window() by default
Not gtk_show_uri().
https://bugzilla.gnome.org/show_bug.cgi?id=778726
Ask Hjorth Larsen [Thu, 16 Feb 2017 13:30:13 +0000 (14:30 +0100)]
Updated Danish translation
Ask Hjorth Larsen [Thu, 16 Feb 2017 13:27:47 +0000 (14:27 +0100)]
Updated Danish translation
Daniel Boles [Sun, 12 Feb 2017 15:52:02 +0000 (15:52 +0000)]
widget: Document signal mnemonic-activate
Name the extra bool argument, and move the explanatory paragraph from
the emitting method to the signal, with some minor tweaks to wording.
https://bugzilla.gnome.org/show_bug.cgi?id=778534
Bastien Nocera [Wed, 15 Feb 2017 12:35:13 +0000 (13:35 +0100)]
gtkshow: Prefer gtk_show_uri_on_window() which works for sandboxed apps
gtk_show_uri_on_window() will pass enough information for Portal helpers
to allow dialogue parenting in Flatpak, gtk_show_uri() won't, so
deprecate it.
https://bugzilla.gnome.org/show_bug.cgi?id=778678
Tong Hui [Wed, 15 Feb 2017 12:11:27 +0000 (20:11 +0800)]
Update zh_CN translation
Chun-wei Fan [Wed, 15 Feb 2017 06:43:15 +0000 (14:43 +0800)]
Visual Studio builds: Support Visual Studio 2017
Update the autotools scripts to support Visual Studio 2017 builds by
copying the Visual Studio 2013 projects and updateing the items as
necessary to obtain the Visual Studio 2017 projects.
Note that the format of the toolset string changed, so allow one to
pass in and thus use a custom toolset string, otherwise the default
toolset string will be generated as it was before.
Note also the Visual Studio 2017 aims to be compatible with Visual
Studio 2015 on the CRT level, so binaries built with 2017 should
work without problems with the binaries built with 2015.
Daniel Mustieles [Tue, 14 Feb 2017 19:34:27 +0000 (20:34 +0100)]
Updated Spanish translation
Timm Bäder [Tue, 14 Feb 2017 13:22:25 +0000 (14:22 +0100)]
iconhelper: Remove unused _draw implementation
Timm Bäder [Tue, 14 Feb 2017 12:23:08 +0000 (13:23 +0100)]
snapshot: Avoid a double-free
We can't pass the same string to two different snapshot states since
removing one of them will free the passed string, so just create another
one for the second state.
Timm Bäder [Mon, 13 Feb 2017 20:31:24 +0000 (21:31 +0100)]
widget: Remove get_preferred_width/height mention in warning
Timm Bäder [Sun, 5 Feb 2017 16:11:24 +0000 (17:11 +0100)]
gtkcontainerprivate: Remove unused function prototypes
Timm Bäder [Sun, 5 Feb 2017 08:21:56 +0000 (09:21 +0100)]
colorbutton: Inherit from GtkWidget
Matthias Clasen [Mon, 13 Feb 2017 21:05:39 +0000 (16:05 -0500)]
3.89.4
Inaki Larranaga Murgoitio [Mon, 13 Feb 2017 21:36:57 +0000 (22:36 +0100)]
Update Basque language
Inaki Larranaga Murgoitio [Mon, 13 Feb 2017 21:36:09 +0000 (22:36 +0100)]
Update Basque language
Kjartan Maraas [Sun, 12 Feb 2017 15:27:26 +0000 (16:27 +0100)]
Updated Norwegian bokmål translation.
Kjartan Maraas [Sun, 12 Feb 2017 15:23:27 +0000 (16:23 +0100)]
Updated Norwegian bokmål translation.
Marek Černocký [Sun, 12 Feb 2017 12:09:13 +0000 (13:09 +0100)]
Updated Czech translation
Lapo Calamandrei [Wed, 8 Feb 2017 15:53:10 +0000 (16:53 +0100)]
HC: insensitive styling for views.
Lapo Calamandrei [Wed, 8 Feb 2017 15:45:51 +0000 (16:45 +0100)]
adwaita: insensitive styling for views
Add an insensitive style to views, somehow we didn't ship one, so
for example, disabled textviews looked the same as sensitive ones.
Olivier Fourdan [Wed, 1 Feb 2017 08:41:07 +0000 (09:41 +0100)]
wayland: do not clamp anchor values
Clamping the anchor values as introduced in commit
9a5ffcd to fix bug
777176 breaks menu positioning.
By keeping the anchors rectangle size greater than zero, we end up
deducting some positive value from the original position, so there is no
need to clamp() actually, keeping the values positive is enough and
avoids the issue with menu positioning on the menubar.
An additional benefit is to make the code a lot simpler.
https://bugzilla.gnome.org/show_bug.cgi?id=778009
Chris Martin [Fri, 9 Dec 2016 03:13:29 +0000 (22:13 -0500)]
getting-started: typo tie->the
https://bugzilla.gnome.org/show_bug.cgi?id=775864
Piotr Drąg [Sun, 5 Feb 2017 15:08:59 +0000 (16:08 +0100)]
Update Polish translation
Timm Bäder [Sun, 5 Feb 2017 13:59:19 +0000 (14:59 +0100)]
Never return NULL from gdk_get_program_class
gdk_init is not calling g_set_prgname anymore, so just return a dummy
string from gdk_get_program_class if it has not been set before.
Timm Bäder [Sun, 5 Feb 2017 12:57:29 +0000 (13:57 +0100)]
popover: Simplify gtk_popover_measure
Timm Bäder [Sun, 5 Feb 2017 10:45:50 +0000 (11:45 +0100)]
infobar: Use GtkButton:icon-name
Timm Bäder [Sun, 5 Feb 2017 09:08:25 +0000 (10:08 +0100)]
colorchooserwidget: Show palette by default
Restore the old behavior.
Jiri Grönroos [Sat, 4 Feb 2017 21:10:03 +0000 (21:10 +0000)]
Update Finnish translation
Michael Catanzaro [Sat, 21 Jan 2017 02:19:56 +0000 (20:19 -0600)]
notebook: redraw arrows after closing a tab
Thanks to Daniel Boles for helping with a crash in an earlier version of
this patch.
https://bugzilla.gnome.org/show_bug.cgi?id=777547
Sveinn í Felli [Sat, 4 Feb 2017 15:24:15 +0000 (15:24 +0000)]
Update Icelandic translation
(cherry picked from commit
6209a8e3061e1d14a00bfc6871996d8f21ae00c9)
Timm Bäder [Wed, 1 Feb 2017 20:03:39 +0000 (21:03 +0100)]
spinbutton: Fix right and middle click on +/- buttons
Tell the gesture that we handle all buttons and actually claim the
gesture in the ::pressed handler
Daniel Mustieles [Wed, 1 Feb 2017 10:15:52 +0000 (10:15 +0000)]
Update Spanish translation
Daniel Boles [Tue, 31 Jan 2017 09:39:39 +0000 (09:39 +0000)]
searchentry: Fix typo in documentation
Timm Bäder [Sun, 29 Jan 2017 16:55:00 +0000 (17:55 +0100)]
stack: Fix node position during crossfade
Timm Bäder [Sat, 28 Jan 2017 07:11:14 +0000 (08:11 +0100)]
togglebutton: Move :inconsistent to GtkCheckButton
Timm Bäder [Fri, 27 Jan 2017 11:02:47 +0000 (12:02 +0100)]
togglebutton: Move :draw-indicator property to GtkCheckButton
It's not used in GtkToggleButton at all, only in GtkCheckButton and
GtkRadioButton.
Timm Bäder [Fri, 27 Jan 2017 10:16:03 +0000 (11:16 +0100)]
checkbutton: Remove unused vfunc
Timm Bäder [Fri, 27 Jan 2017 10:07:41 +0000 (11:07 +0100)]
checkbutton: Remove unused function prototype
Timm Bäder [Thu, 26 Jan 2017 17:58:10 +0000 (18:58 +0100)]
widget: Remove gtk_widget_class_list_style_properties
Unused.
Timm Bäder [Sat, 28 Jan 2017 17:24:30 +0000 (18:24 +0100)]
gtkbuilder: Remove unused struct
Timm Bäder [Thu, 26 Jan 2017 12:31:56 +0000 (13:31 +0100)]
build: Stop compressing ui files
It's slower at runtime. Instead, strip blanks.
William Hua [Sun, 29 Jan 2017 16:24:43 +0000 (11:24 -0500)]
mir: handle surface placement events
This allows the Mir backend to properly emit "moved-to-rect."
William Hua [Fri, 27 Jan 2017 19:46:10 +0000 (14:46 -0500)]
mir: use mir_surface_spec_set_placement for menus
This API was added to Mir for GTK menus, combo boxes, etc.
Fran Dieguez [Sun, 29 Jan 2017 19:59:21 +0000 (19:59 +0000)]
Update Galician translation
Fran Dieguez [Sun, 29 Jan 2017 19:48:13 +0000 (19:48 +0000)]
Update Galician translation
Dušan Kazik [Sun, 29 Jan 2017 09:32:03 +0000 (09:32 +0000)]
Update Slovak translation
Dušan Kazik [Sun, 29 Jan 2017 09:30:05 +0000 (09:30 +0000)]
Update Slovak translation
Daniel Boles [Sat, 28 Jan 2017 20:21:56 +0000 (20:21 +0000)]
Remove tests/testtreemenu
Since GtkTreeMenu became a private class only used by GtkComboBox, all
this test actually did was to show a ComboBox constructed with a custom
CellArea. Now that the latter is no longer possible, the test just shows
a handful of settings that do nothing. Just test GtkComboBox directly.
Piotr Drąg [Sat, 28 Jan 2017 00:10:12 +0000 (01:10 +0100)]
Fix translator comments
They need to be exactly one line above a string to show up in .po files.
Michael Catanzaro [Fri, 27 Jan 2017 14:54:24 +0000 (08:54 -0600)]
Revert "notebook: redraw arrows after closing a tab"
This reverts commit
218beb2ef49d407b547047693605328c10d4877d.
Carlos Garnacho [Wed, 25 Jan 2017 14:53:55 +0000 (15:53 +0100)]
wayland: Ensure to set gtk_surface dbus properties after hide()
Currently hiding destroys the wl_surface and all related interfaces,
(including the gtk_surface1) so the next time the GdkWindow is mapped,
we don't bother to set the DBus properties. Toggle the check off so
it's actually issued again after the GdkWindow gets a gtk_surface1.
https://bugzilla.gnome.org/show_bug.cgi?id=773686
Baurzhan Muftakhidinov [Wed, 25 Jan 2017 09:11:28 +0000 (09:11 +0000)]
Update Kazakh translation
Baurzhan Muftakhidinov [Wed, 25 Jan 2017 09:08:46 +0000 (09:08 +0000)]
Update Kazakh translation
Michael Catanzaro [Sat, 21 Jan 2017 02:19:56 +0000 (20:19 -0600)]
notebook: redraw arrows after closing a tab
https://bugzilla.gnome.org/show_bug.cgi?id=777547
Mario Blättermann [Tue, 24 Jan 2017 13:32:48 +0000 (13:32 +0000)]
Update German translation
Timm Bäder [Sun, 22 Jan 2017 14:01:53 +0000 (15:01 +0100)]
widget: Remove gtk_widget_get_preferred_size mention from docs
Mention gtk_widget_measure instead.
Timm Bäder [Sun, 22 Jan 2017 14:01:40 +0000 (15:01 +0100)]
flowbox: Measure child widget sizes using gtk_widget_measure
Timm Bäder [Sun, 22 Jan 2017 13:48:28 +0000 (14:48 +0100)]
widget: Remove warning about already visible widgets
That was just added by mistake of course.
Timm Bäder [Sun, 22 Jan 2017 13:37:56 +0000 (14:37 +0100)]
Remove unnecessary gtk_widget_show calls
Timm Bäder [Sat, 21 Jan 2017 07:45:44 +0000 (08:45 +0100)]
gtkfontbutton: hexpand the font label
To restore the previous look.
Daniel Boles [Sat, 21 Jan 2017 22:43:35 +0000 (22:43 +0000)]
3to4: Fix typo in previous commit
Daniel Boles [Sat, 21 Jan 2017 22:39:06 +0000 (22:39 +0000)]
3to4: Fix suggested replacements for border-width
The new CSS border-spacing does what Grid::(row|column)_spacing and
Box::spacing already did, i.e. controlling the space added between child
widgets, so it’s not a replacement for Container::border-width.
Daniel Boles [Sat, 21 Jan 2017 20:40:21 +0000 (20:40 +0000)]
combobox: Stop pointlessly NULL-checking the menu
We now have a valid menu to use at all times.
Daniel Boles [Sat, 21 Jan 2017 20:23:27 +0000 (20:23 +0000)]
combobox: Move area and menu to .ui file
Now that priv->area is guaranteed to be constructed by us, and not
passed in by a user, we can move it to the .ui file and stop manually
managing its lifetime altogether. And once the area is there, we can
move the menu there too (and stop pointlessly destroying/rebuilding it).
Daniel Boles [Sat, 21 Jan 2017 12:54:49 +0000 (12:54 +0000)]
combobox: Remove property cell-area
The CellArea is going to become a pure implementation detail & be moved
to the .ui, instead of letting users mess with it (if anyone ever did).
Daniel Boles [Sat, 21 Jan 2017 15:11:40 +0000 (15:11 +0000)]
combobox: Reuse code rather than reimplementing it
We already have cell_layout_is_sensitive() to get whether at least one
cell in a Layout is sensitive, which we need because CellLayout/View
do not implement foreach(). So, since we wrote that, we can use it to
check our CellArea too, instead of doing foreach with a custom callback.